package com.hunktimes.wholesale.widget

import android.content.Context
import android.view.LayoutInflater
import android.webkit.WebView
import android.widget.LinearLayout
import com.hunktimes.wholesale.R
import com.just.agentweb.IWebLayout

/**
 * Author: Delete
 * Date: 2019/12/2 15:53
 * Description:
 *
 */
class WebLayoutNoRefresh : IWebLayout<WebView, LinearLayout> {


    val webContainer: LinearLayout
    val mWebView: WebView

    constructor(contxt: Context) {
        webContainer = LayoutInflater.from(contxt)
            .inflate(R.layout.webview_layout_norefresh, null, false) as LinearLayout
        mWebView = webContainer.findViewById(R.id.webView)

    }


    override fun getLayout(): LinearLayout = webContainer

    override fun getWebView(): WebView? = mWebView
}